//
//  ZDUser.m
//  OCSinaWeiBo
//
//  Created by Apple on 15/11/2.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import "ZDUser.h"

@implementation ZDUser


- (UIImage *)verifiedImage
{
    NSString *imageName = nil;
    
    switch (_verified_type)
    {
        case 0:
            imageName = @"avatar_vip";     //认证用户
            break;
        case 2:
        case 3:
        case 5:
            imageName = @"avatar_enterprise_vip";     //企业认证
            break;
        case 220:
            imageName = @"avatar_grassroot";     //达人
            break;
        default:
            return nil;
    }
    
    return [UIImage imageNamed:imageName];
}


- (UIImage *)mbrankImage
{
    NSString *imageName = nil;
    
    if (_mbrank >=1 && _mbrank <= 6)
    {
        imageName = [NSString stringWithFormat:@"common_icon_membership_level%d", _mbrank];
    }
    else
    {
        imageName = @"common_icon_membership_expired";
    }
    
    return [UIImage imageNamed:imageName];
}

@end
